package moduleFrame.interfaces
{
	public interface IListener
	{
		/**
		 * 监听全局消息
		 */
		function addRootListener(type:String, listener:Function, useCapture:Boolean = false, 
								 priority:int = 0, useWeakReference:Boolean = false):void;
		
		/**
		 * 监听模块消息（只当前自己模块内消息有效）
		 */
		function addModuleListener(type:String, listener:Function, useCapture:Boolean = false,
								   priority:int = 0, useWeakReference:Boolean = false):void;
	}
}